* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    display: block;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

/* 领劵部分开始 */

.view {
    /* 头部 */
    header {
        height: 38px;
        background-color: #f4483e;
        display: flex;
        justify-content: space-between;
        color: #fff;
        a:nth-child(1) {
            padding-left: 10px;
            >i {
                font-size: 35px;
            }
        }
        h3 {
            line-height: 38px;
        }
        a:nth-of-type(2) {
            // background-color: blue;
            position: relative;
            &::before {
                content: "";
                background-image: url(../images/header_app.png);
                width: 30px;
                height: 30px;
                background-size: 30px 30px;
                position: absolute;
                top: 4px;
                right: 10px;
            }
        }
    }
    /* 优惠券部分 */
    .content {
        margin-bottom: 20px;
        .content-pic {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            padding-top: 10px;
            a {
                width: 33%; // flex:1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 4px 30px 10px 30px;
                margin-bottom: 10px;
                border: 1px solid #ccc;
            }
        }
        .content-nav {
            display: flex;
            justify-content: flex-start;
            background-color: #f3f3f3;
            padding: 10px;
            border: 1px solid #d9d9d9;
        }
    }
    /* footer */
    footer {
        background-color: #f3f3f3;
        font-size: 14px;
        .footer-top {
            display: flex;
            justify-content: space-around;
            border: 1px solid #d9d9d9;
            a {
                flex: 3;
                padding: 10px 0;
                display: flex;
                justify-content: center;
            }
            a:nth-child(2) {
                border-right: 1px solid #d9d9d9;
                border-left: 1px solid #d9d9d9;
            }
            a:nth-child(3) {
                flex: 4;
            }
        }
        .footer-bottom {
            text-align: center;
            padding: 15px 0;
            .bottom-t {
                display: flex;
                justify-content: center;
                font-weight: 600;
                a {
                    color: red;
                }
                span {
                    margin-left: 2px;
                }
                span:last-child {
                    color: #696969;
                    font-weight: normal;
                }
            }
            a {
                color: #696969;
            }
        }
    }
}

/* details 开始 */

.details {
    position: relative;
    /* 头部 */
    header {
        height: 38px;
        background-color: #f4483e;
        display: flex;
        justify-content: space-between;
        color: #fff;
        a:nth-child(1) {
            padding-left: 10px;
            >i {
                font-size: 35px;
            }
        }
        h3 {
            padding-right: 10px;
            line-height: 38px;
        }
        a:nth-of-type(2) {
            // background-color: blue;
            position: relative;
            &::before {
                content: "";
                background-image: url(../images/header_app.png);
                width: 30px;
                height: 30px;
                background-size: 30px 30px;
                position: absolute;
                top: 4px;
                right: 10px;
            }
        }
    }
    /* 提示 */
    h5 {
        padding-bottom: 3px;
        font-size: 14px;
        font-weight: normal;
        text-align: center;
        color: #bcbcbc;
    }
    .packing {
        .packing-j {
            color: #666666;
            padding-top: 5px; // padding-bottom: 10px;
            border-bottom: 1px solid #bcbcbc;
            font-size: 14px;
            a {
                display: flex;
                justify-content: space-around;
                span {
                    padding: 0 5px; // flex: 2;
                }
                .p-j-r {
                    p:last-child {
                        padding: 10px 0;
                        color: #f4a65d;
                    }
                }
                i {
                    display: flex;
                    align-items: center;
                    color: #bcbcbc;
                }
            }
        }
    }
    /* 遮罩层 */
    .alertBox {
        display: none;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        overflow: hidden;
        z-index: 99;
        .bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.5;
            background: #000;
            z-index: -1
        }
        .alert {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 80%;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: space-around;
            align-items: center;
            span {
                flex: 1;
                color: red;
                margin-left: 4px;
                >i{
                    padding: 10px 3px;
                    font-size: 20px;
                    background-color:  #cccccc;
                }
            }
            img {
                flex: 6;
            }
            span:nth-child(1) {
                margin-left: 0;
                margin-right: 4px;
                display: flex;
                justify-content: flex-end;
            }
            
        }
    }
}